<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class ProjectDimensionalityInspectionReportsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	$reports = [
    		[
    			'company_id' => 1,
    			'project_id' => 1,
    			'project_name' => '花园城一期',
    			'date' => '2017-04-01',
    			'lines_count' => 3,
    			'nodes_count' => 81,
    			'nodes_insepcted' => 78,
    			'nodes_rate' => 96.29,
    			'nodes_punctuality' => 98,
    			'nodes_uninspected' => 10,
    			'nodes_errors' => 87.65,
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
				'company_id' => 1,
    			'project_id' => 2,
    			'project_name' => '花园城二期',
    			'date' => '2017-04-01',
    			'lines_count' => 3,
    			'nodes_count' => 54,
    			'nodes_insepcted' => 49,
    			'nodes_rate' => 90.74,
    			'nodes_punctuality' => 80,
    			'nodes_uninspected' => 10,
    			'nodes_errors' => 87.65,
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],
		];

    	DB::table('project_dimensionality_inspection_reports')->insert($reports);
    }
}
